package com.ustc.hewei.nettyrpc2_0.common.annotation;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
* @description: 注册服务的注解类
* @author hewei
* @date 2022/7/26 20:21
* @version 1.0
*/

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface RPCService {
    int weight() default 1;

    Class<?> value();
}
